--[[
Licenced under GNU GPL.
For more information, see LICENCE in the main folder.
--]]

--[[
Contains codes relevant with the enemy.

@version	0.1 12 Aug 2011
@author		rodmp
--]]
Enemy = {
    id = 0,			-- ID.
}

function Enemy:new(o)
    o = o or {}
    setmetatable(o, self)
    self.__index = self

    return o
end

function Enemy:setID(id)
    self.id = id
end

function Enemy:getID()
    return self.id
end

function Enemy:getPosition(id)
    return GetV(V_POSITION, id)
end

function Enemy:getTarget()
    return GetV(V_TARGET, self.id)
end